#************************************************************************
#*   IRC - Internet Relay Chat, src/modules/Makefile
#*   Copyright (C) Carsten V. Munk 2001
#*
#*   This program is free software; you can redistribute it and/or modify
#*   it under the terms of the GNU General Public License as published by
#*   the Free Software Foundation; either version 1, or (at your option)
#*   any later version.
#*
#*   This program is distributed in the hope that it will be useful,
#*   but WITHOUT ANY WARRANTY; without even the implied warranty of
#*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#*   GNU General Public License for more details.
#*
#*   You should have received a copy of the GNU General Public License
#*   along with this program; if not, write to the Free Software
#*   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#*   
#*   $Id$
#*/
# major edit from fez - to compile objects individually...

CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="

INCLUDES = ../include/channel.h \
	../include/common.h ../include/config.h ../include/dbuf.h \
	../include/dynconf.h ../include/fdlist.h ../include/h.h \
	../include/ircsprintf.h \
	../include/license.h \
	../include/modules.h ../include/modversion.h ../include/msg.h \
	../include/numeric.h ../include/proto.h ../include/dns.h \
	../include/resource.h ../include/setup.h \
	../include/struct.h ../include/sys.h \
	../include/types.h ../include/url.h \
	../include/version.h ../include/whowas.h

R_MODULES= \
	sethost.so chghost.so chgident.so setname.so \
	setident.so sdesc.so svsmode.so swhois.so\
	svsmotd.so svsnline.so who_old.so whox.so mkpasswd.so \
	away.so svsnoop.so svsnick.so \
	chgname.so kill.so \
	lag.so message.so oper.so pingpong.so \
	quit.so sendumode.so sqline.so \
	tsctl.so unsqline.so whois.so \
	tkl.so vhost.so cycle.so svsjoin.so svspart.so \
	svswatch.so svssilence.so sendsno.so svssno.so \
	sajoin.so sapart.so samode.so kick.so topic.so \
	invite.so list.so time.so svskill.so sjoin.so \
	pass.so userhost.so ison.so silence.so knock.so \
	umode2.so squit.so protoctl.so addomotd.so \
	wallops.so admin.so globops.so locops.so \
	trace.so netinfo.so links.so help.so rules.so \
	close.so map.so eos.so server.so stats.so \
	dccdeny.so whowas.so \
	connect.so dccallow.so userip.so nick.so user.so \
	mode.so watch.so part.so join.so motd.so opermotd.so \
	botmotd.so lusers.so names.so svsnolag.so addmotd.so \
	svslusers.so starttls.so webredir.so cap.so \
	sasl.so md.so certfp.so \
	tls_antidos.so webirc.so websocket.so \
	blacklist.so jointhrottle.so \
	antirandom.so hideserver.so jumpserver.so \
	ircops.so staff.so nocodes.so \
	charsys.so antimixedutf8.so authprompt.so sinfo.so \
	reputation.so connthrottle.so history_backend_mem.so \
	history_backend_null.so tkldb.so channeldb.so \
	restrict-commands.so rmtkl.so require-module.so \
	account-notify.so \
	message-tags.so batch.so \
	account-tag.so labeled-response.so link-security.so \
	message-ids.so plaintext-policy.so server-time.so sts.so \
	echo-message.so userip-tag.so userhost-tag.so \
	typing-indicator.so \
	ident_lookup.so history.so \
	targetfloodprot.so clienttagdeny.so

MODULES=cloak.so $(R_MODULES)
MODULEFLAGS=@MODULEFLAGS@
RM=@RM@

all: build

build: $(MODULES)
	cd chanmodes; $(MAKE) all
	cd usermodes; $(MAKE) all
	cd snomasks; $(MAKE) all
	cd extbans; $(MAKE) all
	cd third; $(MAKE) all

#############################################################################
#             .so's section
#############################################################################

chgname.so: chgname.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o chgname.so chgname.c

kill.so: kill.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o kill.so kill.c

lag.so: lag.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o lag.so lag.c

message.so: message.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o message.so message.c

oper.so: oper.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o oper.so oper.c

pingpong.so: pingpong.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o pingpong.so pingpong.c

quit.so: quit.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o quit.so quit.c

sendumode.so: sendumode.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sendumode.so sendumode.c

sqline.so: sqline.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sqline.so sqline.c

tsctl.so: tsctl.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o tsctl.so tsctl.c

unsqline.so: unsqline.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o unsqline.so unsqline.c

whois.so: whois.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o whois.so whois.c

sethost.so: sethost.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sethost.so sethost.c

chghost.so: chghost.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o chghost.so chghost.c

chgident.so: chgident.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o chgident.so chgident.c

setident.so: setident.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o setident.so setident.c

setname.so: setname.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o setname.so setname.c

sdesc.so: sdesc.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o sdesc.so sdesc.c

svsmode.so: svsmode.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o svsmode.so svsmode.c

swhois.so: swhois.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o swhois.so swhois.c

svsmotd.so: svsmotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o svsmotd.so svsmotd.c

svsnline.so: svsnline.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o svsnline.so svsnline.c

who_old.so: who_old.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o who_old.so who_old.c

whox.so: whox.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		 -o whox.so whox.c

mkpasswd.so: mkpasswd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o mkpasswd.so mkpasswd.c

away.so: away.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o away.so away.c

svsnoop.so: svsnoop.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svsnoop.so svsnoop.c

svsnick.so: svsnick.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svsnick.so svsnick.c

tkl.so: tkl.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o tkl.so tkl.c

vhost.so: vhost.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o vhost.so vhost.c

cycle.so: cycle.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o cycle.so cycle.c

svsjoin.so: svsjoin.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svsjoin.so svsjoin.c

svspart.so: svspart.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svspart.so svspart.c

svslusers.so: svslusers.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svslusers.so svslusers.c

svswatch.so: svswatch.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svswatch.so svswatch.c

svssilence.so: svssilence.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svssilence.so svssilence.c

sendsno.so: sendsno.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sendsno.so sendsno.c

svssno.so: svssno.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svssno.so svssno.c

sajoin.so: sajoin.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sajoin.so sajoin.c

sapart.so: sapart.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sapart.so sapart.c

samode.so: samode.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o samode.so samode.c

kick.so: kick.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o kick.so kick.c

topic.so: topic.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o topic.so topic.c

invite.so: invite.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o invite.so invite.c

list.so: list.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o list.so list.c

time.so: time.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o time.so time.c

svskill.so: svskill.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svskill.so svskill.c

sjoin.so: sjoin.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sjoin.so sjoin.c

pass.so: pass.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o pass.so pass.c

userhost.so: userhost.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o userhost.so userhost.c

ison.so: ison.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o ison.so ison.c

silence.so: silence.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o silence.so silence.c

knock.so: knock.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o knock.so knock.c

umode2.so: umode2.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o umode2.so umode2.c

squit.so: squit.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o squit.so squit.c

protoctl.so: protoctl.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o protoctl.so protoctl.c

addmotd.so: addmotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o addmotd.so addmotd.c

addomotd.so: addomotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o addomotd.so addomotd.c

wallops.so: wallops.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o wallops.so wallops.c

admin.so: admin.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o admin.so admin.c
		
globops.so: globops.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o globops.so globops.c

locops.so: locops.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o locops.so locops.c

trace.so: trace.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o trace.so trace.c

netinfo.so: netinfo.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o netinfo.so netinfo.c

links.so: links.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o links.so links.c

help.so: help.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o help.so help.c

rules.so: rules.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o rules.so rules.c

close.so: close.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o close.so close.c

map.so: map.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o map.so map.c

eos.so: eos.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o eos.so eos.c

server.so: server.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o server.so server.c

stats.so: stats.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o stats.so stats.c

dccdeny.so: dccdeny.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o dccdeny.so dccdeny.c

whowas.so: whowas.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o whowas.so whowas.c

connect.so: connect.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o connect.so connect.c

dccallow.so: dccallow.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o dccallow.so dccallow.c

userip.so: userip.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o userip.so userip.c

nick.so: nick.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o nick.so nick.c

user.so: user.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o user.so user.c

mode.so: mode.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o mode.so mode.c

watch.so: watch.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o watch.so watch.c

part.so: part.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o part.so part.c

join.so: join.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o join.so join.c

motd.so: motd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o motd.so motd.c

opermotd.so: opermotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o opermotd.so opermotd.c

botmotd.so: botmotd.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o botmotd.so botmotd.c

lusers.so: lusers.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o lusers.so lusers.c

names.so: names.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
	       -o names.so names.c

svsnolag.so: svsnolag.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o svsnolag.so svsnolag.c

starttls.so: starttls.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o starttls.so starttls.c

webredir.so: webredir.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o webredir.so webredir.c

cap.so: cap.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o cap.so cap.c

sasl.so: sasl.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sasl.so sasl.c

md.so: md.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o md.so md.c

certfp.so: certfp.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o certfp.so certfp.c

tls_antidos.so: tls_antidos.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o tls_antidos.so tls_antidos.c

webirc.so: webirc.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o webirc.so webirc.c

websocket.so: websocket.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o websocket.so websocket.c

blacklist.so: blacklist.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o blacklist.so blacklist.c

jointhrottle.so: jointhrottle.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o jointhrottle.so jointhrottle.c

antirandom.so: antirandom.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o antirandom.so antirandom.c

hideserver.so: hideserver.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o hideserver.so hideserver.c

jumpserver.so: jumpserver.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o jumpserver.so jumpserver.c

ircops.so: ircops.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o ircops.so ircops.c

staff.so: staff.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o staff.so staff.c

nocodes.so: nocodes.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o nocodes.so nocodes.c

charsys.so: charsys.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o charsys.so charsys.c

antimixedutf8.so: antimixedutf8.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o antimixedutf8.so antimixedutf8.c

authprompt.so: authprompt.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o authprompt.so authprompt.c

sinfo.so: sinfo.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sinfo.so sinfo.c

reputation.so: reputation.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o reputation.so reputation.c

connthrottle.so: connthrottle.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o connthrottle.so connthrottle.c

history_backend_mem.so: history_backend_mem.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o history_backend_mem.so history_backend_mem.c

history_backend_null.so: history_backend_null.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o history_backend_null.so history_backend_null.c

tkldb.so: tkldb.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o tkldb.so tkldb.c

channeldb.so: channeldb.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o channeldb.so channeldb.c

restrict-commands.so: restrict-commands.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o restrict-commands.so restrict-commands.c

rmtkl.so: rmtkl.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o rmtkl.so rmtkl.c

message-tags.so: message-tags.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o message-tags.so message-tags.c

batch.so: batch.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o batch.so batch.c

account-tag.so: account-tag.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o account-tag.so account-tag.c

labeled-response.so: labeled-response.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o labeled-response.so labeled-response.c

link-security.so: link-security.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o link-security.so link-security.c

message-ids.so: message-ids.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o message-ids.so message-ids.c

plaintext-policy.so: plaintext-policy.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o plaintext-policy.so plaintext-policy.c

server-time.so: server-time.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o server-time.so server-time.c

sts.so: sts.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o sts.so sts.c

echo-message.so: echo-message.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o echo-message.so echo-message.c

userip-tag.so: userip-tag.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o userip-tag.so userip-tag.c

userhost-tag.so: userhost-tag.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o userhost-tag.so userhost-tag.c

typing-indicator.so: typing-indicator.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o typing-indicator.so typing-indicator.c

require-module.so: require-module.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o require-module.so require-module.c

account-notify.so: account-notify.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o account-notify.so account-notify.c

ident_lookup.so: ident_lookup.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o ident_lookup.so ident_lookup.c

history.so: history.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o history.so history.c

targetfloodprot.so: targetfloodprot.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o targetfloodprot.so targetfloodprot.c

clienttagdeny.so: clienttagdeny.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o clienttagdeny.so clienttagdeny.c

#############################################################################
# capabilities
#############################################################################

#############################################################################
#             and now the remaining modules...
#############################################################################

cloak.so: cloak.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o cloak.so cloak.c

clean:
	$(RM) -f *.o *.so *~ core
	cd chanmodes; $(MAKE) clean
	cd usermodes; $(MAKE) clean
	cd snomasks; $(MAKE) clean
	cd extbans; $(MAKE) clean
	cd third; $(MAKE) clean
